Program to find factorial of a number